-- GENERATED SPELL FOR [Titanium Stormlord] --


function spell0_33255(pUnit, Event) --@Cyclone,n/a--
pUnit:FullCastSpellOnTarget(62632,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33255', 15000, 1)
end

function spell1_33255(pUnit, Event) --@Cyclone,Self--
pUnit:FullCastSpellOnTarget(62633,pUnit)
pUnit:RegisterEvent('Sorts_33255', 608, 1)
end

function Sorts_33255(pUnit, Event)
local choix_sorts_33255 = math.random(0, 1)
if choix_sorts_33255 == 0 then
pUnit:RegisterEvent('spell0_33255', 1, 1)
end
if choix_sorts_33255 == 1 then
pUnit:RegisterEvent('spell1_33255', 1, 1)
end
end

function mob33255_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33255', math.random(1500, 3000), 1)
end

function mob33255_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33255_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33255_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33255, 1, 'mob33255_Action')
RegisterUnitEvent(33255, 2, 'mob33255_Leave')
RegisterUnitEvent(33255, 3, 'mob33255_Kill')
RegisterUnitEvent(33255, 4, 'mob33255_Die')
